/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.tb_discharge_cargo_address.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.sys.entity.User;
import com.thinkgem.jeesite.modules.tb_areas.entity.TbAreas;

/**
 * 卸货地址管理Entity
 * @author ZhangYangZe
 * @version 2017-05-13
 */
public class TbDischargeCargoAddress extends DataEntity<TbDischargeCargoAddress> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private String shortName;		// 简称
	private String persion;		// 联系人
	private String tell;		// 联系电话
	private String provinceId;		// 省
	private String cityId;		// 市
	private String areaId;		// 区
	private String address;		// 详细地址
	private String addressNew;		// 详细地址(仅查询时使用)
	public String getAddressNew() {
		return addressNew;
	}

	public void setAddressNew(String addressNew) {
		this.addressNew = addressNew;
	}

	public TbDischargeCargoAddress() {
		super();
	}

	public TbDischargeCargoAddress(String id){
		super(id);
	}

	@Length(min=1, max=50, message="名称长度必须介于 1 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=25, message="简称长度必须介于 1 和 25 之间")
	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}
	
	@Length(min=1, max=15, message="联系人长度必须介于 1 和 15 之间")
	public String getPersion() {
		return persion;
	}

	public void setPersion(String persion) {
		this.persion = persion;
	}
	
	@Length(min=1, max=11, message="联系电话长度必须介于 1 和 11 之间")
	public String getTell() {
		return tell;
	}

	public void setTell(String tell) {
		this.tell = tell;
	}
	
	@Length(min=1, max=20, message="省长度必须介于 1 和 20 之间")
	public String getProvinceId() {
		return provinceId;
	}

	public void setProvinceId(String provinceId) {
		this.provinceId = provinceId;
	}
	
	@Length(min=1, max=50, message="市长度必须介于 1 和 50 之间")
	public String getCityId() {
		return cityId;
	}

	public void setCityId(String cityId) {
		this.cityId = cityId;
	}
	
	@Length(min=1, max=50, message="区长度必须介于 1 和 50 之间")
	public String getAreaId() {
		return areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}
	
	@Length(min=1, max=155, message="详细地址长度必须介于 1 和 155 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	private TbAreas p;
	private TbAreas c;
	private TbAreas e;
	private User y;
	private User s;
	public User getY() {
		return y;
	}

	public void setY(User y) {
		this.y = y;
	}

	public User getS() {
		return s;
	}

	public void setS(User s) {
		this.s = s;
	}

	public TbAreas getP() {
		return p;
	}

	public void setP(TbAreas p) {
		this.p = p;
	}

	public TbAreas getC() {
		return c;
	}

	public void setC(TbAreas c) {
		this.c = c;
	}

	public TbAreas getE() {
		return e;
	}

	public void setE(TbAreas e) {
		this.e = e;
	}
}